
import {
    Object3D,
    AmbientLight, PointLight, SpotLight
} from 'three';

import { ball } from './TBasicObject'
 
export const lightList: Object3D[] = []

//添加环境光照
const ambientLight: AmbientLight = new AmbientLight(0xf0ffff, 0.3);

export const pointLight: PointLight = new PointLight(0xf0ffff,0.7,10,0.1);
pointLight.position.set(10,50,10);
pointLight.castShadow = true;

export const spotLight: SpotLight = new SpotLight(0xf0ffff,0.8,50,Math.PI/180*30,0.1,0.1);
spotLight.position.set(-10,20,10);
spotLight.castShadow = true;
spotLight.target = ball;


lightList.push(ambientLight,pointLight,spotLight);